<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BIBLIO: /home/marco/workspace/biblio/src/bibclient.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BIBLIO
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/marco/workspace/biblio/src/bibclient.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="bibclient_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef BIBCLIENT_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define BIBCLIENT_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00011"></a><a class="code" href="bibclient_8h.html#a1ebf69baf0d09a7865b0fbcfd59c48f6">00011</a> <span class="preprocessor">#define ERR_PARAM &quot;Numero di parametri errato\n&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#define ERR_OPT &quot;Parametro %s errato!\n&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define ERR_MUL &quot;Parametro %s specificato più di una volta!\n&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define ERR_BUF &quot;Errore, la dimensione totale dei parametri è superiore al limite consentito!\n&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define ERR_PAT &quot;Errore, nel path %s.&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#define ERR_CON &quot;Errore, impossibile collegarsi alla biblioteca %s\n&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define ERR_SND &quot;Errore nell&#39;invio della richiesta alla biblioteca %s\n&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define ERR_RCV &quot;Errore nella ricezione della risposta dalla biblioteca %s\n&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define ERR_CLS &quot;Errore nella chiusura della connessione con la biblioteca %s\n&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define ERR_FIL &quot;Errore nell&#39;apertura del file di configurazione\n&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define ERR_COM &quot;Errore nella comunicazione con la biblioteca %s\n&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00036"></a><a class="code" href="bibclient_8h.html#a5097dcc4b8a18f11d152b12d2344660b">00036</a> <span class="preprocessor">#define BIB_END &quot;Fine messaggi da %s\n&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#define AUTORE_ &quot;--autore=%[^\n]s&quot;</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define TITOLO_ &quot;--titolo=%[^\n]s&quot;</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define EDITORE_ &quot;--editore=%[^\n]s&quot;</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define LUOGO_PUBBLICAZIONE_ &quot;--luogo_pubblicazione=%[^\n]s&quot;</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#define ANNO_ &quot;--anno=%[^\n]s&quot;</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#define COLLOCAZIONE_ &quot;--collocazione=%[^\n]s&quot;</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define DESCRIZIONE_FISICA_ &quot;--descrizione_fisica=%[^\n]s&quot;</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#define NOTA_ &quot;--nota=%[^\n]s&quot;</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#define PRESTITO_ &quot;--prestito=%[^\n]s&quot;</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define LOAN_ &quot;-p&quot;</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00055"></a><a class="code" href="bibclient_8h.html#a6a58846379c515dca21870f11b250b58">00055</a> <span class="preprocessor">#define OPTION_FORMATS {AUTORE_, TITOLO_, EDITORE_, LUOGO_PUBBLICAZIONE_, ANNO_, COLLOCAZIONE_, DESCRIZIONE_FISICA_, NOTA_, PRESTITO_}</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00057"></a>00057 
<a name="l00062"></a>00062 <span class="preprocessor">#define PARSE_OK 0</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#define PARSE_ERROR -1</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define PARSE_MUL -2</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#define PARSE_MAXBUF -3</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00069"></a><a class="code" href="bibclient_8h.html#afb6b8c4d21f9183c9c65f548d976af2f">00069</a> <span class="preprocessor">#define CONF &quot;bib.conf&quot;</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00076"></a>00076 <span class="keywordtype">int</span> <a class="code" href="bibclient_8c.html#a50fe4e9320fbfcdc05ac4fa6a9b1df95" title="Funzione di parsing dei parametri da riga di comando.">parse_option</a>(<span class="keywordtype">char</span> *arg);
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="preprocessor">#endif </span><span class="comment">/* BIBCLIENT_H_ */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 10:36:44 for BIBLIO by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
